package com.ibeetl.admin.aod.conf.function;

import com.ibeetl.admin.aod.entity.AodIndustryKeyword;
import com.ibeetl.admin.aod.service.AodIndustryKeywordService;
import org.beetl.core.Context;
import org.beetl.core.Function;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AodIndustryKeywordFunction implements Function {

	@Autowired
	AodIndustryKeywordService aodIndustryKeywordService;
	
	public Object call(Object[] paras, Context ctx) {
		AodIndustryKeyword aodIndustryKeyword = aodIndustryKeywordService.queryById(paras[0]);
		return aodIndustryKeyword.getKeyword();
	}
	
}
